﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BossPage : MonoBehaviour
{
    public string mark;
    [Space]
    public Condition[] jumps;
    public Condition[] jumpSelfs;

    public int Index { get; set; }
    public bool ToJump { set; get; } = false;
    public bool ToJumpSelf { set; get; } = false;

    private void Update()
    {
        foreach (var item in jumpSelfs)
        {
            if (item.ToJump)
            {
                ToJumpSelf = true;
            }
            item.ToJump = false;
        }
        foreach (var item in jumps)
        {
            if (item.ToJump)
            {
                ToJump = true;
            }
            item.ToJump = false;
        }
    }
}
